package com.etc.datedemo;

import java.time.LocalDate;

/**
 * @author: knowno
 * @create: 2024-09-09 15:49
 * @Version 1.0
 **/
public class TestLocalDate {
    public static void main(String[] args) {

        LocalDate now = LocalDate.now();
        System.out.println(now);

        //时间日期和 字符串转化
        String str= "2024-09-10";
        LocalDate parse = LocalDate.parse(str);
        System.out.println(parse);

    }
}
